package com.study.spark.scala.chapter04

object Scala03_Flow_While {
  def main(args: Array[String]): Unit = {
    // TODO 流程 while循环
    var age = 0
    while ( age < -1){
      println("******"+age)
      age += 1
    }

    //至少会执行一遍
    do {
      println("######"+age)
      age+=1
    }while( age < -1)
  }
}
